/*
* $Id: TableCel.cpp 8 2010-01-06 17:25:39Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#include "Common/include.h"
#include "TableCel.h"
#include "TableHeader.h"

CTableCel::CTableCel(const std::tstring& strName, tableItem* pParent)
: tableCel(strName, pParent), CItemTable(RGB(255, 255, 255)){
	Init();
}
CTableCel::~CTableCel(){}

void CTableCel::SetYPos(int nYPos){
	m_pos.y = nYPos;
}
void CTableCel::SetCy(int nCy){
	m_size.cy = nCy;
}

void CTableCel::Init(){
	m_pos.x = dynamic_cast<CItemTable*>((CTableHeader*)m_pHeader)->GetPos().x;
	m_size.cx = dynamic_cast<CItemTable*>((CTableHeader*)m_pHeader)->GetSize().cx;
}
